import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'

import store from './store'

import router from './router'

import '@/icons' // icon
import dayjs from 'dayjs'
Vue.filter('dtformat', dt => {
  return dayjs(dt).format('YYYY-MM-DD')
})

Vue.use(ElementUI)
import './permission.js'
Vue.config.productionTip = false
// PageTools组件引入
// import PageTools from '@/components/PageTools'
// Vue.component('PageTools', PageTools)
import componentPlugin from '@/components'
Vue.use(componentPlugin)

// vue实例化
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
